package com.wuji.blog.pojo.param;

import lombok.Data;

/**
 * @作者 wangj
 * @日期 2022/1/19 15:53
 * @描述 获取前端的参数
 **/
@Data
public class PageParam {
    private int page = 1;
    private int pageSize = 10;
    private Long categoryId;
    private Long tagId;
    private String year;
    private String month;
    public String getMonth(){
        if (this.month != null && this.month.length() == 1){
            return "0"+this.month;
        }
        return this.month;
    }
}
